﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@model OASys.Web.Models.ModelHomeMain
@{
	Layout = null;
}
<html>
@RazorWidget.ViewStart()
<head>
	<title title="首页"></title>
	<base target="mainFrame" />
	<link href="/Content/Main.css" rel="stylesheet" type="text/css" />
	<script src="/Scripts/base/main.js" type="text/javascript"></script>
</head>
<body>
	@using (Html.BeginForm())
 {
		<div>
			<ul class="function-container">
				@for (int i = 0; i < Model.GridDataSources.Count; i++)
	{
				var menu = SessionManager.CurrentSysUserMenus.FirstOrDefault(x => x.ID == Model.GridDataSources[i].MenuID);
				var parentMenu = SessionManager.CurrentSysUserMenus.FirstOrDefault(x => x.ID == menu.ParentID);
				var navigationName = string.Format("{0}>>{1}", parentMenu.Name, menu.Name);
				<li title="@(Model.GridDataSources[i].Name)" shortcut="2" onclick="top.setframeUrl('@(Model.GridDataSources[i].TargetURL)','@(navigationName)')">
					<em class="number">@Model.GridDataSources[i].Count</em>
					<div class="function-background">
						<img alt="" src="/content/images/main/custom/@(Model.GridDataSources[i].Icon)" />
					</div>
					<span>@(Model.GridDataSources[i].Name)</span>
				</li>
	}
			</ul>
		</div>
 }
</body>
</html>
<script type="text/javascript">
	$("#navigation").html("首页");
</script>
